package com.yidianyanglao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by Seed on 2016/10/30.
 */
public class OrderAdd {

    private int id;
    private int consumptionId;                  //关联消费者外键用户id
    private String consumptionName;             //消费者姓名
    private String consumptionMobile;           //电话号码
    private  int shopId;                        //关联商户外键
    private String shopName;                    //店铺名称
    private int businessId;                     //零售商外键
    private String businessName;                //零售商名称
    private String consumptionRecommend;        //消费者推荐人
    private String businessRecommend;           //商户推荐人
    private int seriesId;                       //系列id
    private String seriesName;                  //系列名称
    private Date createdate;                    //订单产生时间
    private double amountvalue;                  //消费金额
    private String ordernumber;                 //订单编号
    private String resource;                    //订单来源  “一点养老”
    private int orderstate;                     //0:待提交资料  1：待结算  2：已结算  3：已撤销
    private  int excitationstate;               //是否开始激励:0：未开始 1：开始
    private int summaryId;                      //所属的统计（商户当天的数据统计记录）外键关联
    private String consumptionCertificate;      //消费凭证
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payofftime;                    //结算完成日期
    private double letRadio;                     //让利比率
    private double letValue;                     //让利金额
    private Date submittime;                    //提交资料时间

    public Date getSubmittime() {
        return submittime;
    }

    public void setSubmittime(Date submittime) {
        this.submittime = submittime;
    }

    public double getLetRadio() {
        return letRadio;
    }

    public void setLetRadio(double letRadio) {
        this.letRadio = letRadio;
    }

    public double getLetValue() {
        return letValue;
    }

    public void setLetValue(double letValue) {
        this.letValue = letValue;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getConsumptionId() {
        return consumptionId;
    }

    public void setConsumptionId(int consumptionId) {
        this.consumptionId = consumptionId;
    }

    public String getConsumptionName() {
        return consumptionName;
    }

    public void setConsumptionName(String consumptionName) {
        this.consumptionName = consumptionName;
    }

    public String getConsumptionMobile() {
        return consumptionMobile;
    }

    public void setConsumptionMobile(String consumptionMobile) {
        this.consumptionMobile = consumptionMobile;
    }

    public int getShopId() {
        return shopId;
    }

    public void setShopId(int shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public int getBusinessId() {
        return businessId;
    }

    public void setBusinessId(int businessId) {
        this.businessId = businessId;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public String getConsumptionRecommend() {
        return consumptionRecommend;
    }

    public void setConsumptionRecommend(String consumptionRecommend) {
        this.consumptionRecommend = consumptionRecommend;
    }

    public String getBusinessRecommend() {
        return businessRecommend;
    }

    public void setBusinessRecommend(String businessRecommend) {
        this.businessRecommend = businessRecommend;
    }

    public int getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(int seriesId) {
        this.seriesId = seriesId;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public double getAmountvalue() {
        return amountvalue;
    }

    public void setAmountvalue(double amountvalue) {
        this.amountvalue = amountvalue;
    }

    public String getOrdernumber() {
        return ordernumber;
    }

    public void setOrdernumber(String ordernumber) {
        this.ordernumber = ordernumber;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public int getOrderstate() {
        return orderstate;
    }

    public void setOrderstate(int orderstate) {
        this.orderstate = orderstate;
    }

    public int getSummaryId() {
        return summaryId;
    }

    public void setSummaryId(int summaryId) {
        this.summaryId = summaryId;
    }

    public String getConsumptionCertificate() {
        return consumptionCertificate;
    }

    public void setConsumptionCertificate(String consumptionCertificate) {
        this.consumptionCertificate = consumptionCertificate;
    }

    public Date getPayofftime() {
        return payofftime;
    }

    public void setPayofftime(Date payofftime) {
        this.payofftime = payofftime;
    }


    public int getExcitationstate() {
        return excitationstate;
    }

    public void setExcitationstate(int excitationstate) {
        this.excitationstate = excitationstate;
    }

}
